//
//  Util.m
//  YiChat
//
//  Created by Hesilen on 16/7/7.
//  Copyright © 2016年 Hesilen. All rights reserved.
//

#import "Util.h"

@implementation Util


+(void)showAlertWithMessage:(NSString *)message confirmBlock:(Block)block
{
    UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"温馨提示" message:message preferredStyle:UIAlertControllerStyleAlert];
    UIAlertAction *alertAciton = [UIAlertAction actionWithTitle:@"温馨提示" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
        if(block)
        {
            block();
        }
    }];
    [alertController addAction:alertAciton];
    [WINDOW.rootViewController presentViewController:alertController animated:YES completion:nil];
}

@end
